<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The HttpRequestPool class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httprequest.seturl.html">HttpRequest::setUrl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequestpool.attach.html">HttpRequestPool::attach</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.httprequestpool" class="reference">
 <h1 class="title">The <a href="class.httprequestpool.html" class="classname">HttpRequestPool</a> class</h1>
 
 <div class="partintro"><p class="verinfo">(PECL pecl_http &gt;= 0.10.0)</p>
  <div class="section" id="httprequestpool.synopsis">
   <h2 class="title">类摘要</h2>
   <div class="classsynopsis">
    <div class="ooclass"></div>
    <div class="classsynopsisinfo">
     <span class="ooclass"><strong class="classname">HttpRequestPool</strong></span>
     <span class="oointerface">implements 
      <span class="interfacename"><strong class="interfacename">Iterator</strong></span>
     </span>
     <span class="oointerface">, 
      <span class="interfacename"><a href="class.countable.html" class="interfacename">Countable</a></span>
     </span>
     {</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequestpool.attach.html" class="methodname">attach</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.httprequest.html" class="type HttpRequest">HttpRequest</a></span> <code class="parameter">$request</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="httprequestpool.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type"><a href="class.httprequest.html" class="type HttpRequest">HttpRequest</a></span> <code class="parameter">$request</code></span>
   [, <span class="methodparam"><span class="type"><a href="class.httprequest.html" class="type HttpRequest">HttpRequest</a></span> <code class="parameter">$...</code></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="httprequestpool.destruct.html" class="methodname">__destruct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="httprequestpool.detach.html" class="methodname">detach</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.httprequest.html" class="type HttpRequest">HttpRequest</a></span> <code class="parameter">$request</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><a href="httprequestpool.getattachedrequests.html" class="methodname">getAttachedRequests</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><a href="httprequestpool.getfinishedrequests.html" class="methodname">getFinishedRequests</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="httprequestpool.reset.html" class="methodname">reset</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="httprequestpool.send.html" class="methodname">send</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">protected</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequestpool.socketperform.html" class="methodname">socketPerform</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">protected</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequestpool.socketselect.html" class="methodname">socketSelect</a></span>
    ([ <span class="methodparam"><span class="type">float</span> <code class="parameter">$timeout</code><span class="initializer"> = 0</span></span>
  ] )</div>

   }</div>
  </div>

 <div class="section" id="http.httprequestpool.members">
  <h2 class="title">Class Members</h2>
  <div class="section" id="http.httprequestpool.properties">
   <h2 class="title">属性</h2>
   <p class="para">
    The <strong class="classname">HttpRequestPool</strong> class does not have any properties.
   </p>
  </div>
  <div class="section" id="http.httprequestpool.constants">
   <h2 class="title">预定义常量</h2>
   <p class="para">
    The <strong class="classname">HttpRequestPool</strong> class does not have any constants.
   </p>
  </div>
 </div>
</div>







































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="httprequestpool.attach.html">HttpRequestPool::attach</a> — Attach HttpRequest</li><li><a href="httprequestpool.construct.html">HttpRequestPool::__construct</a> — HttpRequestPool constructor</li><li><a href="httprequestpool.destruct.html">HttpRequestPool::__destruct</a> — HttpRequestPool destructor</li><li><a href="httprequestpool.detach.html">HttpRequestPool::detach</a> — Detach HttpRequest</li><li><a href="httprequestpool.getattachedrequests.html">HttpRequestPool::getAttachedRequests</a> — Get attached requests</li><li><a href="httprequestpool.getfinishedrequests.html">HttpRequestPool::getFinishedRequests</a> — Get finished requests</li><li><a href="httprequestpool.reset.html">HttpRequestPool::reset</a> — Reset request pool</li><li><a href="httprequestpool.send.html">HttpRequestPool::send</a> — Send all requests</li><li><a href="httprequestpool.socketperform.html">HttpRequestPool::socketPerform</a> — Perform socket actions</li><li><a href="httprequestpool.socketselect.html">HttpRequestPool::socketSelect</a> — Perform socket select</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httprequest.seturl.html">HttpRequest::setUrl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequestpool.attach.html">HttpRequestPool::attach</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
